package Junit.domain;

import junit.framework.TestCase;
import domain.items.*;

public class PostTest extends TestCase {
	Post post;
	public void testContant(){
		String tContent1 = "bla bla bla 1";
		post = new Post (null,"owner","subject1",tContent1);
		assertEquals(tContent1, post.getText());
		String tContent2 = "bla bla bla 2";
		post.setContent(tContent2);
		assertEquals(tContent2, post.getText());
	}

//	public void testDate(){
//		System.out.println(post.getDate());
//		assertEquals(null, post.getDate());
//		Date tDate = new Date();
//		post.setDate(tDate);
//		assertEquals(tDate, post.getDate());
//	}
}
